<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>updateManagers.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" language="javascript">
		function checkForm(){
			var pwd1 = document.getElementById("adminName").value;
			var pwd2 = document.getElementById("adminPass").value;
			if(pwd1==""){
				alert("登录名称不可以为空");
				document.getElementById("adminName").focus();
				document.getElementById("adminName").select();
				return false;
			}
			if(pwd2==""){
				alert("密码不可以为空");
				document.getElementById("adminPass").focus();
				document.getElementById("adminPass").select();
				return false;
			}
			return true;	
		}	
	</script>
	

  </head>
  
  <body>
   <html:form action="/admin/managers/list.do?method=updateManagers" enctype="multipart/form-data" >
    <input type="hidden" name="id" value="${managers.id}"/>
    <table cellpadding="0" cellspacing="0" border="0" align="center">
    <tr>
    <td>登录名称:</td><td><html:text property="adminName" value="${managers.adminName}" readonly="true"></html:text></td>
    <td>登录密码:</td><td><html:password property="adminPass" value="${managers.adminPass}"></html:password></td>
    </tr>
    
    <tr>
    <td>真实姓名:</td><td><html:text property="realyName" value="${managers.realyName}"></html:text></td>
    <td>备注:</td><td><html:textarea property="beizhu" value="${managers.beizhu}" rows="1"></html:textarea></td>
    </tr>
     <tr>
    <td>上传图片:</td>
    <td>
    <html:file property="picStr"></html:file>
     <c:if test="${strpic!=null}">
         <html:link href="/fileUpload/managers/${strpic}" target="_blank"><font color=green>图片已存在，查看图片</font></html:link>
     </c:if>
    </td>
    </tr>
    <tr><td><html:submit onclick="return checkForm();">提交</html:submit></td><td><html:reset>重置</html:reset></td></tr>
    </table>
    </html:form>
  </body>
</html:html>
